package com.wang.service.impl;

import com.aaa.vo.Result;
import com.wang.service.openfeign.NoteByPhone;
import com.wang.service.PhoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: fifth-cai-parent
 * @date :  2023-03-06 09:16
 **/
@Service
public class PhoneServiceImpl implements PhoneService {
    @Autowired
    private NoteByPhone noteByPhone;

    @Override
    public Result phone(String mobile) {
        Result phone = noteByPhone.Phone(mobile);
        return new Result(200,"发送验证码成功",phone);
    }
}
